package com.toivan.mt.model;

import android.content.Context;
import android.graphics.drawable.Drawable;


import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;

import com.toivan.mt.R;
import com.toivan.mt.adapter.MtFaceShapeAdapter;

public enum MtFaceShape {
    //常用
    EYE_ENLARGING(R.string.eye_enlarging, R.drawable.icon_eye_magnifying, MtFaceShapeAdapter.TYPE_COMMON),
    CHEEK_THINNING(R.string.cheek_thinning, R.drawable.icon_chin_slimming, MtFaceShapeAdapter.TYPE_CRITICAL),
    //脸部
    CHEEK_NARROWING(R.string.cheek_narrowing, R.drawable.icon_face_narrowing, MtFaceShapeAdapter.TYPE_COMMON),
    CHEEK_BONE_THINNING(R.string.cheek_bone_thinning, R.drawable.icon_cheek_bone_thinning, MtFaceShapeAdapter.TYPE_COMMON),
    JAW_BONE_THINNING(R.string.jaw_bone_thinning, R.drawable.icon_jaw_bone_thinning, MtFaceShapeAdapter.TYPE_COMMON),
    TEMPLE_ENLARGING(R.string.temple_enlarging, R.drawable.icon_temple_enlarging, MtFaceShapeAdapter.TYPE_COMMON),
    HEAD_LESSENING(R.string.head_lessening, R.drawable.icon_head_lessening, MtFaceShapeAdapter.TYPE_COMMON),
    FACE_LESSENING(R.string.face_lessening, R.drawable.icon_face_lessening, MtFaceShapeAdapter.TYPE_COMMON),
    CHIN_TRIMMING(R.string.chin_trimming, R.drawable.icon_jaw_transforming, MtFaceShapeAdapter.TYPE_COMMON),
    PHILTRUM_TRIMMING(R.string.philtrum_trimming, R.drawable.icon_philtrum_trimming, MtFaceShapeAdapter.TYPE_COMMON),
    FOREHEAD_TRIMMING(R.string.forehead_trimming, R.drawable.icon_forehead_transforming, MtFaceShapeAdapter.TYPE_CRITICAL),
    //眼部
    EYE_SPACING(R.string.eye_sapcing, R.drawable.icon_eye_spacing, MtFaceShapeAdapter.TYPE_COMMON),
    EYE_CORNER_TRIMMING(R.string.eye_corner_trimming, R.drawable.icon_eye_corner_trimming, MtFaceShapeAdapter.TYPE_COMMON),
    EYE_CORNER_ENLARGING(R.string.eye_corner_enlarging, R.drawable.icon_eye_corner_enlarging, MtFaceShapeAdapter.TYPE_CRITICAL),
    //鼻子
    NOSE_ENLARGING(R.string.nose_enlarging, R.drawable.icon_nose_elongating, MtFaceShapeAdapter.TYPE_COMMON),
    NOSE_THINNING(R.string.nose_thinning, R.drawable.icon_nose_minifying, MtFaceShapeAdapter.TYPE_COMMON),
    NOSE_APEX_LESSENING(R.string.nose_apex_lessening, R.drawable.icon_nose_apex_lessening, MtFaceShapeAdapter.TYPE_COMMON),
    NOSE_ROOT_ENLARGING(R.string.nose_root_enlarging, R.drawable.icon_nose_root_enlarging, MtFaceShapeAdapter.TYPE_CRITICAL),
    //嘴部
    MOUTH_TRIMMING(R.string.mouth_trimming, R.drawable.icon_mouth_trimming, MtFaceShapeAdapter.TYPE_COMMON),
    MOUTH_SMILING(R.string.mouth_smiling, R.drawable.icon_mouth_smiling, MtFaceShapeAdapter.TYPE_CRITICAL),
    //黑眼圈
    DARK_CIRCLE(R.string.undereye_circles, R.drawable.icon_undereye_circles, MtFaceShapeAdapter.TYPE_COMMON);

    private int stringId;
    private int imageId;
    private int type;

    MtFaceShape(@StringRes int stringId, @DrawableRes int imageId, int type) {
        this.stringId = stringId;
        this.imageId = imageId;
        this.type = type;
    }

    public String getString(@NonNull Context context) {
        return context.getResources().getString(stringId);
    }

    public Drawable getImageDrawable(@NonNull Context context) {
        return context.getResources().getDrawable(imageId);
    }

    public int getType() {
        return type;
    }


}


